package cn.itmantzy.org.domain;

import cn.itmantzy.basic.domain.BaseDomain;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Department extends BaseDomain{
    // 主键id
    private Long id;
    // 部门编号
    private String sn;
    // 部门名称
    private String name;
    // 部门的上级分类层级id
    private String dirPath;
    // 部门状态
    private Integer state;
    // 部门管理员id
    private String manager_id;
    private Employee manager;
    // 上级部门
    private String parent_id;
    private Department department;

    // 二级部门
    private List<Department> children = new ArrayList<>();

}
